<script setup>
import { RouterView } from 'vue-router'
</script>

<template>
  <RouterView />
</template>

<style>
/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
}

/* 图标字体占位符 */
.icon-dashboard::before,
.icon-users::before,
.icon-tasks::before,
.icon-payments::before,
.icon-reports::before,
.icon-completed::before,
.icon-revenue::before,
.icon-user-add::before,
.icon-task-complete::before,
.icon-user-register::before,
.icon-logout::before,
.icon-publish::before,
.icon-profile::before,
.icon-rating::before {
  content: "★";
  /* 实际项目中应使用真正的图标字体或SVG图标 */
}

/* 响应式设计 */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  main {
    padding: 0;
  }
}
</style>